From: Jonathan Dieter Date: Tue, 17 Apr 2018 13:25:39 +0000 (+0300) Subject: Get rid of warnings on EL7 gcc X-Git-Tag: archive/raspbian/1.1.9+ds1-1+rpi1~1^2~311 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=bcec71b437755c7a0126a7a539824f1bea3217d6;p=zchunk.git Get rid of warnings on EL7 gcc Signed-off-by: Jonathan Dieter --- diff --git a/src/lib/dl/multipart.c b/src/lib/dl/multipart.c index 09fd4de..0d7b616 100644 --- a/src/lib/dl/multipart.c +++ b/src/lib/dl/multipart.c @@ -169,7 +169,7 @@ size_t zck_multipart_extract(zckDL *dl, char *b, size_t l) { continue; /* Run regex against download range string */ - regmatch_t match[4] = {0}; + regmatch_t match[4] = {{0}}; if(regexec(dl->priv->dl_regex, i, 3, match, 0) != 0) { if(regexec(dl->priv->end_regex, i, 3, match, 0) != 0) zck_log(ZCK_LOG_ERROR, "Unable to find multipart download range\n"); @@ -228,7 +228,7 @@ size_t zck_multipart_get_boundary(zckDL *dl, char *b, size_t size) { memcpy(buf, b, size); /* Check whether this header contains the boundary and set it if it does */ - regmatch_t match[2] = {0}; + regmatch_t match[2] = {{0}}; if(regexec(dl->priv->hdr_regex, buf, 2, match, 0) == 0) { reset_mp(dl->priv->mp); char *boundary = zmalloc(match[1].rm_eo - match[1].rm_so + 1);